package com.hboxs.asl.wechat.entity;

import com.hboxs.asl.entity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

/**
 * Entity -- 微信配置
 */
@Entity
@Table(name = "t_wechat_config")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "t_wechat_config_sequence")
public class WxConfig extends BaseEntity {
    private static final long serialVersionUID = 5612130705029051732L;

    public static final String KEY_ACCESS_TOKEN = "ACCESS_TOKEN";
    public static final String KEY_JSAPI_TICKET = "JSAPI_TICKET";

    private String configKey;
    private String configValue;
    private Integer expiresIn;

    @NotNull
    public String getConfigKey() {
        return configKey;
    }

    public void setConfigKey(String key) {
        this.configKey = key;
    }

    @NotNull
    public String getConfigValue() {
        return configValue;
    }

    public void setConfigValue(String value) {
        this.configValue = value;
    }

    @NotNull
    public Integer getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(Integer expiresIn) {
        this.expiresIn = expiresIn;
    }
}
